home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / CMARS.ZIP / CMARS.DOC < prev    next >
Text File  |  1995-07-31  |  2KB  |  51 lines

  1. Hi,
  2.     This is a version of MARS that you can walk through.  You can 
  3.     also rotate your point of view in increments of 15 degrees and
  4.     it will show you the map from the new point of view and you
  5.     can walk along the new point of view.
  6.  
  7.     Keys are:
  8.  
  9.     H    move left
  10.     J    move backwards
  11.     K    move forwards
  12.     L    move right
  13.     A    Rotate Left
  14.     S    Rotate Right
  15.     X    quit
  16.     Q    quit
  17.  
  18.  
  19.     you will quickly notice that this program gives you a view 
  20.     through a fisheye lens, especially if you walk left or right.
  21.     I leave the distribution that way; the point of view covers
  22.     180 degrees which is why it looks fishy.  I suppose limiting 
  23.     the point of view to less than 180 degrees would help.  I used
  24.     a modified version of the circle routine given in Wilton to
  25.     do calculate the points to display, if anyone is interested
  26.     in the equations e-mail me at gclind01@ulkyvx.louisville.edu
  27.     and I'll type them in for you.
  28.  
  29.     Files you should have:
  30.  
  31.     cmars.c, cmars.h   C Driver code
  32.     camars.asm         Video code written in ASM
  33.     sin.c              Sin/Cos table generator
  34.     sintab.asm         Sin/cos tables
  35.     makefile           borland C 4.5 makefile
  36.  
  37.  
  38.     I'm indebted to the original author for fractal code and
  39.     generating maps, also parts of the display routines come from
  40.     the original author.  He was anonymous, however...  My
  41.     primary contribution was cleaning up his mess, making the 
  42.     routines callable from C, and enhanced display routines that
  43.     allow for the 3-d rotations.
  44.  
  45.     This program uses 386 instructions and will not run on an
  46.     8086 or a 286.
  47.  
  48.  
  49.     David Lindauer,  gclind01@ulkyvx.louisville.edu
  50.  
  51.     August 1995